package pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Cook {
    private String food;

    public String getFood() {
        return food;
    }
    @Value("超级好吃的食物哟")
    public void setFood(String food) {
        this.food = food;
    }

    @Override
    public String toString() {
        return "Cook{" +
                "food='" + food + '\'' +
                '}';
    }
}
